package org.ziyuandagong.share.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 自愿打工
 * @since 2024-12-06
 */
@TableName("share_link_access")
@ApiModel(value = "LinkAccess对象", description = "")
public class LinkAccess implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("分享链接访问记录的唯一标识符")
    private String accessId;

    @ApiModelProperty("关联的分享记录ID")
    private String shareId;

    @ApiModelProperty("访问时间")
    private LocalDateTime accessTime;

    @ApiModelProperty("访问者的IP地址")
    private String accessIp;

    @ApiModelProperty("访问者的用户代理信息")
    private String userAgent;

    public String getAccessId() {
        return accessId;
    }

    public void setAccessId(String accessId) {
        this.accessId = accessId;
    }
    public String getShareId() {
        return shareId;
    }

    public void setShareId(String shareId) {
        this.shareId = shareId;
    }
    public LocalDateTime getAccessTime() {
        return accessTime;
    }

    public void setAccessTime(LocalDateTime accessTime) {
        this.accessTime = accessTime;
    }
    public String getAccessIp() {
        return accessIp;
    }

    public void setAccessIp(String accessIp) {
        this.accessIp = accessIp;
    }
    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    @Override
    public String toString() {
        return "LinkAccess{" +
            "accessId=" + accessId +
            ", shareId=" + shareId +
            ", accessTime=" + accessTime +
            ", accessIp=" + accessIp +
            ", userAgent=" + userAgent +
        "}";
    }
}
